 <#ftl encoding="UTF-8" />
            <form id="form_data" class="form__data_content">
                <!-- 非材料花费 -->
                <div id="panelTop" style="position:relative; height:50px; border-bottom: 1px solid #ddd; background-color:#fff;">
                    <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0;">
                        <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                        <button type="button" name="_ButNew" id="ButNew" class="act__button" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                        <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                        <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                        <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                        <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();" style="margin-left:15px;"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>打印预览</button>
                    </div>
                    <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                        <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                    </div>
                    <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:20px;">
                        <div class="panel__toolbar_item">
                            <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                        </div>
                        <div class="panel__toolbar_item" disabled="disabled">
                            <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                        </div>
                    </div>
                </div>
                <div class="data__table_wrapper">
                    <table class="data__table">
                        <colgroup>
                            <col style="width: 7%;" />
                            <col style="width: 20%;" />
                            <col style="width: 7%;" />
                            <col style="width: 15%;" />
                            <col style="width: 7%;" />
                            <col style="width: 15%;" />
                            <col style="width: 7%;" />
                            <col />
                        </colgroup>
                        <tbody>
                            <tr>
                                <td class="td__label">
                                    <label for="SupplierName">供应商<em>★</em></label>
                                </td>
                                <td>                       
                                    <input type="hidden" id="SupplierId" name="_SupplierId" tabindex="1" />
                                    <div id="ChoiceSupplier" class="form_input_dropdown_wrapper" style="width:100%;" onclick="_InstancePageHeader.DoChoiceSupplier();">
                                        <input type="text" id="SupplierName" name="_SupplierName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="1" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="DateOfDelivery">花费年月<em>★</em></label>
                                </td>
                                <td>
                                    <select id="YearOfBill" name="_YearOfBill" tabindex="2" style="width:50px;">
                                        <#if YearList?exists>
                                        <#list YearList as _year>
                                        <option value="${_year}">${_year}</option>
                                        </#list>
                                        </#if>
                                    </select>（年）
                                    <select id="MonthOfBill" tabindex="3" style="width:35px;">
                                        <option value="1">1</option>
                                        <option value="2">2</option>
                                        <option value="3">3</option>
                                        <option value="4">4</option>
                                        <option value="5">5</option>
                                        <option value="6">6</option>
                                        <option value="7">7</option>
                                        <option value="8">8</option>
                                        <option value="9">9</option>
                                        <option value="10">10</option>
                                        <option value="11">11</option>
                                        <option value="12">12</option>
                                    </select>（月）
                                </td>
                                <td class="td__label">
                                    <label for="UpdatedByName">操作情况</label>
                                </td>
                                <td>
                                    <input type="text" id="UpdatedByName" name="_UpdatedByName" tabindex="4" style="width:90px;" readonly="readonly" />
                                    <input type="text" id="UpdatedDate" name="_UpdatedDate" tabindex="5" style="width:90px;" readonly="readonly" />
                                </td>
                                <td class="td__label">
                                    <label for="CheckedByName">审核情况</label>
                                </td>
                                <td>
                                    <input type="text" id="CheckedByName" name="_CheckedByName" tabindex="6" style="width:90px;" readonly="readonly" />
                                    <input type="text" id="CheckedDate" name="_CheckedDate" tabindex="7" style="width:90px;" readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                    <label for="Description">备注</label>
                                </td>
                                <td colspan="7">
                                    <textarea class="area" id="Description" name="_Description" tabindex="8" style="width:100%; height:71px; resize:none;"></textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </form>

            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if headerId?exists>${headerId}<#else>0</#if>" />
            
            <!-- 明细部分 -->
            <div id="panelSlave" style="position:relative; top:0;">
                <!-- 折叠标记 -->
                <div id="hPanelSplitter" title="隐藏主表"><i class="fa-all fa-angle-double-up"></i></div>
                <!-- 明细内容 -->
                <ul id="tabPanelHeader" class="tabstrip" style="top:0; width:100%;">
                    <li id="menu_01" class="tabInactive" style="margin-left:25px;">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">非材料花费明细</abbr></span></span>
                        </div>
                    </li>
                </ul>
                <div id="tabPanelData" class="tab__wrapper" style="top:0; height:auto;">
                    <!-- 非材料花费明细 -->
                    <div id="tab_wrapper_01" class="tab__content" style="width:100%; padding:0 8px;">
                        <div id="panel_slave_butbar_01" style="clear:both; position:relative; top:5px; z-index:+1;">
                            <button type="button" name="_ButNewMoLines" id="ButNewMoLines" class="act__button act__save" onclick="_InstancePageLines.NewLines();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                            <button type="button" name="_ButSaveMoLines" id="ButSaveMoLines" class="act__button act__save" onclick="_InstancePageLines.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存明细</button>
                        </div>
                        <div id="panel_slave_data_01" style="position:relative; top:10px; width:100%;">
                            <table id="tabHeader11" class="layout display">
                                <colgroup>
                                    <col style="width:36px;" />
                                    <col style="width:36px;" />
                                    <col style="width:260px;" />
                                    <col style="width:200px;" />
                                    <col style="width:90px;" />
                                    <col style="width:230px;" />
                                    <col style="width:70px;" />
                                    <col style="width:90px;" />
                                    <col />
                                    <col style="width:18px;" />
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th style="text-align:center;">#</th>
                                        <th style="text-align:center;">删除</th>
                                        <th class="edit__column">款号</th>
                                        <th class="edit__column">花费原因</th>
                                        <th class="edit__column">花费金额</th>
                                        <th class="edit__column">发票号</th>
                                        <th class="edit__column">税率</th>
                                        <th class="edit__column">发票日期</th>
                                        <th class="edit__column">订单合同号</th>
                                        <th></th>
                                    </tr>
                                </thead>
                            </table>
                            <div id="divD11" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll; width:100%;">
                                <table id="tabData11" class="responsive__table" style="margin-top:-1px;">
                                    <colgroup>
                                        <col style="width:36px;" />
                                        <col style="width:36px;" />
                                        <col style="width:260px;" />
                                        <col style="width:200px;" />
                                        <col style="width:90px;" />
                                        <col style="width:230px;" />
                                        <col style="width:70px;" />
                                        <col style="width:90px;" />
                                        <col />
                                    </colgroup>
                                    <tbody></tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
